package com.cskaoyan.controller;

import com.cskaoyan.service.CollectService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.CollectVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: libugu@cskaoyan.com
 * @date 2021/4/9 - 18:39
 */
@RestController
public class CollectController {

    @Autowired
    CollectService collectService;

    @RequestMapping("admin/collect/list")
    public BaseRespVo list(Integer page,Integer limit,String sort,String order){

        CollectVo collectVo = collectService.qurey(page,limit,sort,order);

        return BaseRespVo.ok(collectVo);

    }


}
